<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                template="/WEB-INF/template/main-template.xhtml">

    <ui:define name="header">
        <div class="login-panel">
            <h:form>
                <p:inputText type="text" placeholder="Search" value="#"  />
                <p:inputText type="password" placeholder="Search" value="#"  />
                <p:commandButton styleClass="login-button" action="#" value="Login" />
            </h:form>
        </div>

        <div class="menu-container">
            <h:form>
                <p:growl id="messages"/>

                <p:menubar styleClass="my-menu">
                    <p:menuitem styleClass="#{menuIndex == 1 ? 'ui-state-active' : ''}" value="Home" url="index.xhtml" />

                    <p:menuitem styleClass="#{menuIndex == 2 ? 'ui-state-active' : ''}" value="Users" url="users.xhtml" />

                    <p:menuitem styleClass="#{menuIndex == 3 ? 'ui-state-active' : ''}" value="Categories" url="index.xhtml" />

                    <f:facet name="options">
                        <ui:insert name="search" />
                    </f:facet>
                </p:menubar>
            </h:form>
        </div>
    </ui:define>
</ui:composition>